package com.naiterui.ehp.bs.cms.modules.user.feign;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import com.naiterui.ehp.bp.bo.patient.PatientInquirerBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;

@FeignClient(name = "cmsPatient", url = "${ehp.domain.ap}", configuration = FeignConfiguration.class)
public interface PatientFeignClient {

    @PostMapping("inner/patient/inquirer/list/{patientId}")
    List<PatientInquirerBO> patientInquirerList(@PathVariable Long patientId) throws BusinessException;

}
